{% load static %}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="author" content="" />
    <link rel="shortcut icon" href="favicon.png">
    <link rel="icon" href="{% static 'account/img/logo.png' %}" type="image/x-icon">
    <title>mikutap</title>
    <style>
        body{
            margin:0;
            padding:0;
            overflow-y:hidden
        }
    </style>
    <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
    <script type="text/javascript"></script>
    <script>
        window.onerror=function(){return true;}
        $(function(){
            headerH = 0;
            var h=$(window).height();
            $("#iframe").height((h-headerH)+"px");
        });
    </script>
    <script>
        var url1 = "tencent://message/?uin=185564894&Site=Sambow&Menu=yes"
        var url2 = "mqqwpa://im/chat?chat_type=wpa&uin=185564894"

        function IsPC() {
            var userAgentInfo = navigator.userAgent;
            var Agents = ["Android", "iPhone",
                "SymbianOS", "Windows Phone",
                "iPad", "iPod"];
            var flag = true;
            for (var v = 0; v < Agents.length; v++) {
                if (userAgentInfo.indexOf(Agents[v]) > 0) {
                    flag = false;
                    break;
                }
            }
            return flag;
        }
    </script>
</head>
<body>
<iframe id="iframe" frameborder="0" src="https://aidn.jp/nyancat/" style="width:100%;"></iframe>
</body>
<script>

    if (IsPC()){
        document.getElementById("chat").href = url1
    }
    else{
        document.getElementById("chat").href = url2
    }
</script>
</html>